stat=$(
            cat /proc/uptime | awk '{print $1}'; cat /proc/diskstats | egrep '\s(vd|hd|sd)[a-z]+\s' | awk '{map[$3]=$13}; END{for(k in map){print k,map[k]}}'; 
            sleep 5; 
            cat /proc/uptime | awk '{print $1}'; cat /proc/diskstats | egrep '\s(vd|hd|sd)[a-z]+\s' | awk '{map[$3]=$13}; END{for(k in map){print k,map[k]}}'
        ); 
        echo -e "${stat}" | sed '/^\s*$/d' |
        awk '
            BEGIN{
                start=0;end=0
            } 
            {
                if(NF==1) 
                {
                    if(start==0)
                        {start=$1}
                    else
                        {end=$1}
                } 
                else 
                {   
                    if(map[$1]==0)
                        {map[$1]=$2}
                    else
                        {map[$1]=$2-map[$1]}
                }
            } 
            END{
                delta_t=end-start; 
                for(k in map)
                {
                    print k, map[k]/delta_t/10
                }
            }
        '
